package id.net.iconpln.bb.client.tools;

import com.google.gwt.core.client.JavaScriptObject;

public final class FusionCharts extends JavaScriptObject {

		  protected FusionCharts( ) {
		  }		  
		  public static native FusionCharts getChart( String swf,String idchart,String debug, String width, String height ) /*-{
		  	//,"exactFit"
		    var chart = new $wnd.FusionCharts( swf, idchart, width, height, debug, "1");		    	
		    return chart;
		  }-*/;
		  
		  public native void setDataUrl( String url ) /*-{
		    this.setDataURL( url );       
		  }-*/;
		  public static native FusionCharts getIdChart (String idChart) /*-{
			  var id = $wnd.getChartFromId(idChart);
			  return id;
		  }-*/;
		  public native void setTransparent(boolean s) /*-{
		  	if (s == true){ 
			  this.addParam("WMode", "Transparent");
		  	}
		  }-*/;		  
		  public native void setDataXml( String xml ) /*-{
   			this.setDataXML(xml);
		  }-*/;
		  public native void setXMLLoadingText( String text ) /*-{
			this.addParam("XMLLoadingText",text);
		  }-*/;
		  public native void setParsingDataText( String text ) /*-{
			this.addParam("ParsingDataText",text);
		  }-*/;		  
		  
		  public native void setdebugMode(boolean s) /*-{
		  	if (s == true){ 
			  this.addParam("debugMode", "1");
		  	}
		  }-*/;		  		  
		  public native void setRenderingChartText( String text ) /*-{
			this.addParam("RenderingChartText",text);
		  }-*/;
		  public native void setPBarLoadingText( String text ) /*-{
 			this.addParam("PBarLoadingText",text);
		  }-*/;		  
		  public native void render( String divId ) /*-{
		    this.render( divId );       
		  }-*/;		  
		}
